home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / bbs / tmg108.zip / MAGIC.ZIP / FOREST.SCR < prev    next >
Text File  |  1997-05-08  |  12KB  |  424 lines

  1. @#DEFINE
  2.   CreatureFile FOREST.DAT
  3.   Set ^VR20 0
  4.   Location "fForest of Wolves"
  5. @#INSTALL
  6. `2Forest of Wolves
  7. This is the Script version of the Forest of Wolves.  Compare it with the
  8. version you can access from the Enter Realms menu.  (You shouldn't notice
  9. a difference)
  10. @#ITEMS
  11.   NAME  1 "`2Potion of Healing"
  12.   SCRID 1 "PotH-03091997-JO-N"
  13.   STAT1 1 0 0 2500 1 10
  14.   STAT2 1 1 1 0
  15. @#ITEM1_FLAGS
  16.   DATE 19970508 2
  17. @#ITEM1_USE
  18.   Writeln "`3  You take a drink of the Potion of Healing and a warm fire shoots through"
  19.   Writeln "  your body.  It magically heals your wounds and completely refreshes you."
  20.   Set ^CS10 ^CS11
  21. @#ITEM1_USECOMBAT
  22.   Gosub USE
  23. @#ITEM1_IDENTIFY
  24. WriteBlock
  25. `%┌──────────────┐
  26. `%│`3░░░░░░░░░░░░░░`%│`3 The Potion of Healing will restore your Hit Points
  27. `%│`3░░░░░░░░░░░░░░`%│ `3to Maximum when the potion is used.
  28. `%│`3░░░░░░░░░░░░░░`%│`9 (`%Heals all wounds`9)
  29. `%│`3░░░░░░░░░░░░░░`%│
  30. `%│`3░░░░░░░░░░░░░░`%│
  31. `%│`3░░░░░░░░░░░░░░`%│
  32. `%└──────────────┘DA
  33. BC
  34. C▄▄
  35. C▄▄▄
  36. C▄▄▄
  37. B
  38. EndBlock
  39. @#ITEM1_LASTUSE
  40.   Writeln "`9  (`%The vial is now empty`9)"
  41. @#ITEM1_DROP
  42.   Writeln "`9  The Potion vanishes when it touches the ground."
  43. @#MONSTER
  44.   STATS 1 38 28 21 200 400 68 3
  45.   NAME  1 "Huge Grizzley Bear"
  46.   WNAME 1 "Big Black Paw"
  47.   ANAME 1 "Increadibly Thick Fur"
  48.   DEATH 1 "RRRRRRRRRRRRRRRRRrrrrrrrrrrrrrrrr..."
  49.   STATS 2 158 124 31 690 800 260 6
  50.   NAME  2 "Huge Grizzley Bear"
  51.   WNAME 2 "Big Black Paw"
  52.   ANAME 2 "Increadibly Thick Fur"
  53.   DEATH 2 "RRRRRRRRRRRRRRRRRrrrrrrrrrrrrrrrr..."
  54. @#Event1
  55.   Set ^VR03 400
  56.   Mult ^VR03 ^CS22
  57.   Random ^VR03 ^VR03
  58.   Writeln "`9  You find a sack containing ^VR03 gold pieces in it."
  59.   Add ^CS18 ^VR03
  60.   Pause
  61.   Writeln ""
  62.   Return
  63. @#Event2
  64.   Writeln "`9  You are walking through the forest, whne you are hit by a bolt of"
  65.   Writeln "  `1Blue`9 light.  It surrounds you, envelops you, and drains you of your"
  66.   Writeln "  Energy, but you can feel it making you tougher."
  67.   Random ^VR03 4
  68.   Writeln "`%  You gain `4^VR03`% defense points."
  69.   Add ^CS04 ^VR03
  70.   Set ^VR03 ^CS10
  71.   Random ^VR03 ^VR03
  72.   Add ^VR03 -1
  73.   If ^VR03 > 100
  74.     Set ^VR03 100
  75.   Endif
  76.   If ^VR03 > 0
  77.     Writeln "`%  You lose `4^VR03`% hit points."
  78.     Add ^CS10 -^VR03
  79.   Endif
  80.   Pause
  81.   Return
  82. @#Event3
  83.   Writeln "`9  You are walking through the forest, whne you are hit by a bolt of"
  84.   Writeln "  `4Red`9 light.  It surrounds you, envelops you, and drains you of your"
  85.   Writeln "  Energy, but you can feel it making you stronger."
  86.   Random ^VR03 4
  87.   Writeln "`%  You gain `4^VR03`% attack points."
  88.   Add ^CS03 ^VR03
  89.   Set ^VR03 ^CS10
  90.   Random ^VR03 ^VR03
  91.   Add ^VR03 -1
  92.   If ^VR03 > 100
  93.     Set ^VR03 100
  94.   Endif
  95.   If ^VR03 > 0
  96.     Writeln "`%  You lose `4^VR03`% hit points."
  97.     Add ^CS10 -^VR03
  98.   Endif
  99.   Pause
  100.   Return
  101. @#Event4
  102.   Writeln "`9  You are walking through the forest, whne you are hit by a bolt of"
  103.   Writeln "  `2Green`9 light.  It surrounds you, envelops you, and drains you of your"
  104.   Writeln "  Energy, but you can feel it making you more agile."
  105.   Random ^VR03 4
  106.   Writeln "`%  You gain `4^VR03`% damage reduction points."
  107.   Add ^CS05 ^VR03
  108.   Set ^VR03 ^CS10
  109.   Random ^VR03 ^VR03
  110.   Add ^VR03 -1
  111.   If ^VR03 > 100
  112.     Set ^VR03 100
  113.   Endif
  114.   If ^VR03 > 0
  115.     Writeln "`%  You lose `4^VR03`% hit points."
  116.     Add ^CS10 -^VR03
  117.   Endif
  118.   Pause
  119.   Return
  120. @#Event5
  121.   Writeln "`9  You find a gem partially hidden under a rock!"
  122.   Add ^CS20 1
  123.   Pause
  124.   Return
  125. @#Event6
  126.   Writeln "`9  You stumble across a large cave in the middle of the wilderness."
  127.   Writeln "`9  It is very dark, and smells pretty bad."
  128.   Writeln ""
  129.   DefaultCommand Y
  130.   Write "`9  Do you Enter? (`3Y`9/`3N`9) [`%^VR21`9] : `%"
  131.   ReadChar ^VR01
  132.   If ^VR01 == Y
  133.     Writeln "Yes."
  134.     Writeln ""
  135.     Writeln "`9  Entering the cave, you encounter a Huge Grizzley Bear!"
  136.     If ^CS22 <= 4
  137.       Combat ^GF29 Int 1
  138.       Set ^VR05 5
  139.       Set ^VR06 600
  140.     Endif
  141.     If ^CS22 > 4
  142.       Combat ^GF29 Int 2
  143.       Set ^VR05 8
  144.       Set ^VR06 1200
  145.     Endif
  146.     If ^GF29 == 1
  147.       Writeln "`c`%                         Searching the Cave :"
  148.       Writeln "`#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
  149.       Writeln "`9  After defeating the Grizzley Bear, you search around its cave."
  150.       Writeln "  You find the remains of many small animals, some remnants of fur,"
  151.       Writeln "  But eventually you find some things of value."
  152.       Writeln "`!  You find ^VR06 Gold and ^VR05 Gems!"
  153.       Writeln ""
  154.       Add ^CS18 ^VR06
  155.       Add ^CS20 ^VR05
  156.       Pause
  157.     Endif
  158.     Return
  159.   Endif
  160.   Writeln "No."
  161.   Writeln ""
  162.   Writeln "`9  You guess you'll never know what fortunes could lie in that cave."
  163.   Return
  164. @#Mail1
  165.   SetStr ^VR04 "`%Bank Notice :"
  166.   Random ^VR05 ^CS19
  167.   Mail ^CS01 ^VR04
  168. We regret to inform you that a mistake had been made in your favor.
  169. The error has been corrected, and the sum of ^VR05 has
  170. been removed from your balance.  We regret the error being made.
  171.   MailCommands
  172. Add ^CS19 -^VR05
  173.   EndMail
  174.   Return
  175. @#Mail2
  176.   SetStr ^VR04 "`%Bumbling Move!"
  177.   Set ^VR05 2
  178.   Set ^VR06 12
  179.   Mult ^VR05 ^CS22
  180.   Mult ^VR06 ^CS22
  181.   If ^VR06 > ^CS10
  182.     Set ^VR06 ^CS10
  183.     Add ^VR06 -1
  184.   Endif
  185.   Mail ^CS01 ^VR04
  186. On your way through town, you trip over your own feet and break your
  187. arm.  You realize that even though the healers can fix it, you will
  188. not be as strong as you once were.
  189. (You lose ^VR05 attack points)
  190. (You lose ^VR06 hit points due to pain)
  191.   MailCommands
  192. ADD ATT -^VR05
  193. ADD CHP -^VR06
  194.   EndMail
  195.   Return
  196. @#Mail3
  197.   SetStr ^VR04 "`%Good Fortune!"
  198.   Set ^VR05 ^CS22
  199.   Add ^VR05 2
  200.   Random ^VR05 ^VR05
  201.   Mail ^CS01 ^VR04
  202. On your way back to town, a large bird drops a sack at your feet and
  203. flies off.  Being curious, you open the sack to reveal
  204. ^VR05 gems!  All beautifully polished.
  205.   MailCommands
  206. ADD ^CS20 ^VR05
  207.   EndMail
  208.   Return
  209. @#Mail4
  210.   If ^CS12 > 0
  211.     Setstr ^VR04 "`%Strange Event!"
  212.     Random ^VR05 ^CS22
  213.     Mult ^VR05 2
  214.     Mail ^CS01 ^VR04
  215. On your way back to town, a shimmering green light shoots out of the sky
  216. striking your ^CS13.  It now feels energized.
  217. (Your weapon now has a +^VR05 bonus)
  218.     MailCommands
  219. Add ^CS03 ^VR05
  220. Add ^CS12 ^VR05
  221.     EndMail
  222.   Endif
  223.   Return
  224. @#Mail5
  225.   Set ^VR05 2000
  226.   Mult ^VR05 ^CS22
  227.   Mail ^CS01 `%Message from the Royal Family in Munich :
  228. We have heard of your deeds, and wish you the best of luck in saving
  229. Shamile.  Our treasurer has sent over a small gift of ^VR05 gold to aid you.
  230. (Due to their influence, you gain 4 charm and lose 6 shame)
  231.   MailCommands
  232. Add ^CS06 4
  233. Add ^CS07 -6
  234. Add ^CS18 ^VR05
  235.   EndMail
  236.   Return
  237. @#Event7
  238.   Writeln "`9  You stumble across a small, quaint well nestled deep in the forest."
  239.   Writeln "`9  It has a small wooden sign on it that says `3"Wishes : 1 gem"`9."
  240.   Writeln ""
  241.   DefaultCommand Y
  242.   Write "`9  Do you throw one in? (`3Y`9/`3N`9) [`%^VR21`9] : `%"
  243.   ReadChar ^VR01
  244.   If ^VR01 == Y
  245.     Writeln "Yes."
  246.     If ^CS20 >= 1
  247.       Add ^CS20 -1
  248.       Writeln "`9  Nothing apparently happens."
  249.       Random ^VR02 100
  250.       Add ^VR02 ^CS08
  251.       If ^VR02 <= 20
  252.         Set ^VR03 1
  253.       Endif
  254.       If ^VR02 >= 21
  255.         If ^VR02 <= 40
  256.           Set ^VR03 2
  257.         Endif
  258.       Endif
  259.       If ^VR02 >= 41
  260.         If ^VR02 <= 60
  261.           Set ^VR03 3
  262.         Endif
  263.       Endif
  264.       If ^VR02 >= 61
  265.         If ^VR02 <= 80
  266.           Set ^VR03 4
  267.         Endif
  268.       Endif
  269.       If ^VR02 >= 81
  270.         If ^VR02 <= 100
  271.           Set ^VR03 5
  272.         Endif
  273.       Endif
  274.       Gosub Mail^VR03
  275.       Return
  276.     Endif
  277.     Writeln ""
  278.     Writeln "  `9You don't have a `4GEM`9 to throw in!"
  279.     Return
  280.   Endif
  281.   Writeln "No."
  282.   Writeln ""
  283.   Writeln "`9  You realize you would just be throwing a gem away as wishes dont come true."
  284.   Return
  285. @#Event8
  286.   Writeln "`9  You curse your bad luck as you trip over an upturned tree root, but when"
  287.   Writeln "  you land face down in the mud, you are staring right at a 4-leaf clover."
  288.   Writeln "`%  You gain `21`% luck"
  289.   Add ^CS08 1
  290.   Pause
  291.   Return
  292. @#Event9
  293.   Writeln "`9  From out of nowhere, a large black cat streaks across your path."
  294.   Writeln "`%  You lose `21`% luck"
  295.   Add ^CS08 -1
  296.   Pause
  297.   Return
  298. @#Event10
  299.   SharedEvent 1
  300.   Pause
  301.   Return
  302. @#Event11
  303.   WriteBlock
  304. `9  You remember hearing the rumor about a new church being formed out in
  305. `9  the forest as you stumble upon a small wooden structure.  It looks like
  306. `9  new construction, but as you get near, you realize it is nothing more
  307. `9  than a blind for hunting deer and other animals.
  308. `9  You think to yourself that the rumors are untrue.
  309.   EndBlock
  310.   Return
  311. @#Event12
  312.   SharedEvent 3
  313.   Return
  314. @#Event13
  315.   Writeln "`9  You encounter an ugly hag, and when she sees that you are not repulsed by"
  316.   Writeln "`9  her appearance, she reaches into her bag and hands you a vial of liquid."
  317.   Item 1
  318.   Return
  319. @#SpecialEvent
  320.   Writeln "`c`%                             Special Event:"
  321.   Writeln "`#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
  322.   Random ^VR02 13
  323.   Gosub Event^VR02
  324.   ReDispMenu FALSE
  325.   Return
  326. @#Fight
  327.   If ^CS26 >= 1
  328.     MonsterAvailable ^GF28
  329.     If ^GF28 == 1
  330.       Random ^VR02 100
  331.       Add ^VR02 -^CS08
  332.       If ^VR02 < 20
  333.         Gosub SpecialEvent
  334.         ReDispMenu FALSE
  335.         Return
  336.       Endif
  337.       Combat ^GF29 Ext
  338.       Add ^CS26 -1
  339.       Return
  340.     Endif
  341.     Writeln ""
  342.     Writeln "`9  Sorry, there is `4NOTHING`9 here for you to fight."
  343.     ReDispMenu FALSE
  344.     Return
  345.   Endif
  346.   Writeln ""
  347.   Writeln "`9  Sorry, the forest is `4EMPTY`9.  Perhaps you should return tomorrow."
  348.   ReDispMenu FALSE
  349.   Return
  350. @#Deposit
  351.   Writeln ""
  352.   Writeln "  `3You wander over to a nearby tree, and while nobody is looking, pull a"
  353.   Writeln "  'special' branch and a panel opens up.  You put your money belt in, close"
  354.   Writeln "  the panel and hear the whirring noise.  After a few seconds, you open the"
  355.   Writeln "  panel and retrieve your money belt and receipt."
  356.   Add ^CS19 ^CS18
  357.   Set ^CS18 0
  358.   ReDispMenu FALSE
  359.   Return
  360. @#FOREST_MENU
  361. SHL
  362. `c                           `%Forest of Wolves:
  363. `#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  364. `9  You tread lightly and quickly through the woods, almost stalking your
  365. `9  prey.  You see small rabbits and squirrels, but they refuse to go toe-to
  366. `9  toe with you, so you know you need to look for larger prey.  What do you
  367. `9  wish to do?
  368. `9
  369. `3  (`#^MC01`3)earch for larger prey.
  370. `3  (`#^MC02`3)ealers temple.
  371. `3  (`#^MC03`3)eave this scary place.
  372. @#MAIN
  373.   Menu Forest_menu
  374.   Writeln ""
  375.   Write "`9   HP`%: `9(`%^CS10 `9/`% ^CS11`9)   Fights Left `%: ^CS26"
  376.   Writeln "    `9Gold `%: &CS18     `9Gems `%: &CS20"
  377.   Writeln ""
  378.   Writeln "   `2Forest of Wolves : "
  379.   DefaultCommand L
  380.   If ^CS26 >= 1
  381.     DefaultCommand S
  382.   Endif
  383.   If ^GF29 == 2
  384.     DefaultCommand L
  385.   Endif
  386.   ReadMenuCommands ^VR02
  387.   Writeln "^VR02"
  388.   If ^VR02 == L
  389.     Halt
  390.   Endif
  391.   If ^VR02 == S
  392.     Gosub Fight
  393.   Endif
  394.   If ^VR02 == H
  395.     Healer
  396.     ReDispMenu TRUE
  397.   Endif
  398.   If ^VR02 == F
  399.     FindPlayers
  400.   Endif
  401.   If ^VR02 == R
  402.     DisplayRanks
  403.   Endif
  404.   If ^VR02 == V
  405.     DisplayStats
  406.   Endif
  407.   If ^VR02 == =
  408.     DisplayCreatures
  409.   Endif
  410.   If ^VR02 == D
  411.     Gosub Deposit
  412.   Endif
  413.   If ^VR02 == ?
  414.     DisplayMenu
  415.   Endif
  416.   If ^VR02 == Y
  417.     Inventory
  418.   Endif
  419.   If ^VR02 == M
  420.     Item 1
  421.   Endif
  422.  
  423. @#
  424.